/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Frédéric
 */
public abstract class Vehicule {
    
    private int id_vehicule;
    private String denomination;
    private int indexKilometrique;
    private String numeroPlaque;

    public Vehicule(int id_vehicule, String denomination, int indexKilometrique, String numeroPlaque) {
        this.id_vehicule = id_vehicule;
        this.denomination = denomination;
        this.indexKilometrique = indexKilometrique;
        this.numeroPlaque = numeroPlaque;
    }
    
    

    /**
     * @return the id_vehicule
     */
    public int getId_vehicule() {
        return id_vehicule;
    }

    /**
     * @param id_vehicule the id_vehicule to set
     */
    public void setId_vehicule(int id_vehicule) {
        this.id_vehicule = id_vehicule;
    }

    /**
     * @return the denomination
     */
    public String getDenomination() {
        return denomination;
    }

    /**
     * @param denomination the denomination to set
     */
    public void setDenomination(String denomination) {
        this.denomination = denomination;
    }

    /**
     * @return the indexKilometrique
     */
    public int getIndexKilometrique() {
        return indexKilometrique;
    }

    /**
     * @param indexKilometrique the indexKilometrique to set
     */
    public void setIndexKilometrique(int indexKilometrique) {
        this.indexKilometrique = indexKilometrique;
    }

    /**
     * @return the numeroPlaque
     */
    public String getNumeroPlaque() {
        return numeroPlaque;
    }

    /**
     * @param numeroPlaque the numeroPlaque to set
     */
    public void setNumeroPlaque(String numeroPlaque) {
        this.numeroPlaque = numeroPlaque;
    }
    
     public String afficheToi() {
        return this.getDenomination() + ","  + this.getNumeroPlaque() + ", " ;
    }
    
     
    public abstract double calculeCoutJour();
    
    public abstract double calculeCoutKm();
    
    
    
}
